// 引用网络请求中间件
import request from '../../utils/request.js';

export default {
	/* 外面 */
	getList(data) {
		return request({
			url: `/TraditionalRecipeApi/selectList`,
			method: 'GET',
		})
	},
	/* 分类 */
	getListCate(data) {
		return request({
			url: `/XtPrescription/selectClassifyList`,
			method: 'GET',
		})
	},
	/* id */
	getListByids(ichPrescriptionId = 1, classifyId = 1) {
		return request({
			url: `/XtPrescription/selectList?ichPrescriptionId=${ichPrescriptionId}&classifyId=${classifyId}`,
			method: 'GET',
		})
	},

	getListDetail(prescriptionId) {
		return request({
			url: `/XtPrescription/getOne/${prescriptionId}`,
			method: 'GET',
		})
	},
}